//
// CQuadGridClipClusterQTreeNode.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CQuadGridClipClusterQTreeNode {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CQuadGridClipClusterQTreeNode(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CQuadGridClipClusterQTreeNode obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CQuadGridClipClusterQTreeNode(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setOwner(CQuadGridClipCluster value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_Owner_set(swigCPtr, this, CQuadGridClipCluster.getCPtr(value), value);
  }

  public CQuadGridClipCluster getOwner() {
    long cPtr = nel3dJNI.CQuadGridClipClusterQTreeNode_Owner_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CQuadGridClipCluster(cPtr, false);
  }

  public void setSons(SWIGTYPE_p_p_NL3D__CQuadGridClipClusterQTreeNode value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_Sons_set(swigCPtr, this, SWIGTYPE_p_p_NL3D__CQuadGridClipClusterQTreeNode.getCPtr(value));
  }

  public SWIGTYPE_p_p_NL3D__CQuadGridClipClusterQTreeNode getSons() {
    long cPtr = nel3dJNI.CQuadGridClipClusterQTreeNode_Sons_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_p_NL3D__CQuadGridClipClusterQTreeNode(cPtr, false);
  }

  public void setListNode(CQuadGridClipClusterListDist value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_ListNode_set(swigCPtr, this, CQuadGridClipClusterListDist.getCPtr(value), value);
  }

  public CQuadGridClipClusterListDist getListNode() {
    long cPtr = nel3dJNI.CQuadGridClipClusterQTreeNode_ListNode_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CQuadGridClipClusterListDist(cPtr, false);
  }

  public void setBBox(SWIGTYPE_p_NLMISC__CAABBox value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_BBox_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CAABBox.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CAABBox getBBox() {
    long cPtr = nel3dJNI.CQuadGridClipClusterQTreeNode_BBox_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NLMISC__CAABBox(cPtr, false);
  }

  public void setBBoxExt(SWIGTYPE_p_NLMISC__CAABBoxExt value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_BBoxExt_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CAABBoxExt.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CAABBoxExt getBBoxExt() {
    long cPtr = nel3dJNI.CQuadGridClipClusterQTreeNode_BBoxExt_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NLMISC__CAABBoxExt(cPtr, false);
  }

  public void setEmpty(boolean value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_Empty_set(swigCPtr, this, value);
  }

  public boolean getEmpty() {
    return nel3dJNI.CQuadGridClipClusterQTreeNode_Empty_get(swigCPtr, this);
  }

  public void setRootNode(boolean value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_RootNode_set(swigCPtr, this, value);
  }

  public boolean getRootNode() {
    return nel3dJNI.CQuadGridClipClusterQTreeNode_RootNode_get(swigCPtr, this);
  }

  public void setLeafNode(boolean value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_LeafNode_set(swigCPtr, this, value);
  }

  public boolean getLeafNode() {
    return nel3dJNI.CQuadGridClipClusterQTreeNode_LeafNode_get(swigCPtr, this);
  }

  public void setPivotBBox(SWIGTYPE_p_NLMISC__CAABBox value) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_PivotBBox_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CAABBox.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CAABBox getPivotBBox() {
    long cPtr = nel3dJNI.CQuadGridClipClusterQTreeNode_PivotBBox_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NLMISC__CAABBox(cPtr, false);
  }

  public CQuadGridClipClusterQTreeNode() {
    this(nel3dJNI.new_CQuadGridClipClusterQTreeNode(), true);
  }

  public void init(CQuadGridClipCluster owner, long level, boolean rootNode, SWIGTYPE_p_NLMISC__CAABBox pivot) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_init(swigCPtr, this, CQuadGridClipCluster.getCPtr(owner), owner, level, rootNode, SWIGTYPE_p_NLMISC__CAABBox.getCPtr(pivot));
  }

  public void clip(CClipTrav clipTrav) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_clip(swigCPtr, this, CClipTrav.getCPtr(clipTrav), clipTrav);
  }

  public void noFrustumClip(CClipTrav clipTrav) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_noFrustumClip(swigCPtr, this, CClipTrav.getCPtr(clipTrav), clipTrav);
  }

  public void insertModel(SWIGTYPE_p_NLMISC__CAABBox worldBBox, long distSetup, CTransformShape model) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_insertModel(swigCPtr, this, SWIGTYPE_p_NLMISC__CAABBox.getCPtr(worldBBox), distSetup, CTransformShape.getCPtr(model), model);
  }

  public void resetSons(CClipTrav clipTrav) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_resetSons(swigCPtr, this, CClipTrav.getCPtr(clipTrav), clipTrav);
  }

  public void profileNumChildren(long distLevel, SWIGTYPE_p_unsigned_int result) {
    nel3dJNI.CQuadGridClipClusterQTreeNode_profileNumChildren(swigCPtr, this, distLevel, SWIGTYPE_p_unsigned_int.getCPtr(result));
  }

}
